package cn.est.vo;

import cn.est.dto.Page;

import java.util.List;

public class PageVO<T> extends Page {
    private Integer total;

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    /**
     * 总页数
     */
    public int getPages() {
        return (getTotal() - 1) / getPageSize() + 1;
    }

    private List<T> list;

}
